A chemical formula is a symbolic representation of a chemical compound that indicates the elements present in the compound and the relative number of atoms of each element. It typically consists of the chemical symbols of the elements involved, along with numerical subscripts that denote the quantity of each type of atom.